package com.wandian.login.bindadapter;

import androidx.databinding.BindingAdapter;
import android.widget.ImageView;

import com.mylib.libcore.utils.GlideUtil;
import com.mylib.libcore.utils.UIUtils;

/**
 * @author Administrator
 * @date 2019/12/27-20:30
 * @description 图片绑定
 **/
public class bindadapter {
    @BindingAdapter("yzmImgPath")
    public static void getYzmImg(ImageView iv, String path) {
        if(!UIUtils.isEmpty(path)){
            GlideUtil.intoImg(iv.getContext(),path, iv);
        }
    }
}
